package com.ruoyi.web.controller.wechat.admin;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.ISysPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 微信小程序用户岗位
 *
 * @author jiexiang.sun/Jason
 * @version 1.0.0
 * @create 2022-03-04 0:10
 **/
@RestController
@Validated
@RequestMapping("/admin/post")
public class AdminPostController extends BaseController {

    @Autowired
    private ISysPostService postService;

    /**
     * 获取全部岗位信息
     *
     * @return
     */
    @GetMapping("/getAll")
    public AjaxResult getAll() {
        return AjaxResult.success(postService.selectPostAll());
    }

}
